package com.tengfei.main.course.domain.bo;

import com.tengfei.common.core.domain.BaseEntity;
import com.tengfei.common.core.validate.AddGroup;
import com.tengfei.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 章节业务对象 cs_chapter
 *
 * @author tengfei
 * @date 2022-07-27
 */

@Data
@ApiModel("章节业务对象")
public class ChapterBo {

    /**
     * 章节id
     */
    @ApiModelProperty(value = "章节id")
    @NotNull(message = "章节id不能为空",groups = {EditGroup.class})
    private Long chapterId;

    /**
     * 章节名称
     */
    @ApiModelProperty(value = "章节名称", required = true)
    @NotBlank(message = "章节名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String chapterName;

    /**
     * 课程id
     * 修改时不改章节所属视频
     */
    @ApiModelProperty(value = "课程id", required = true)
    @NotNull(message = "课程id不能为空", groups = { AddGroup.class })
    private Long courseId;


}
